Skip to main content

URL Validator

URL Validator validates the request params,path params and request body of the incoming request.

Configuration

  1. Drag and drop URL Transformer from the pallet.
URL Transformer
  1. Right click on transformer, now you can define the URL Transformer configuration.

For Request params

  1. Click the plus button on the right to add the fields
  2. Name the appropriate request parameter name and the datatype
  3. Click save
request_param
FieldsDescriptionExample
ValueName of the parametercompanyName
DatatypeDatatype of the parameterString
ValueName of the parameteryearsOfExperience
DatatypeDatatype of the parameterNumber

For Request Body (JSON)

  1. Click the toggle button to validate request body
  2. Select the schema type as JSON
  3. Upload the JSON schema using the upload button
  4. You can check the schema from the view button
  5. Click save
request_body_json

Schema

{
"title": "Customer",
"type": "object",
"description": "",
"required": [
"id",
"name",
"city",
"country"
],
"properties": {
"id": {
"type": "number"
},
"name": {
"type": "string"
},
"city": {
"type": "string"
},
"country": {
"type": "string"
}
}
}

For Request Body (CSV)

  1. Click the toggle button to validate request body
  2. Select the schema type as CSV
  3. Upload the CSV schema using the upload button
  4. You can check the schema from the view button
  5. Click save
request_body_csv

Schema

<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="root">
<xs:complexType>
<xs:sequence>
<xs:element name="row" maxOccurs="unbounded" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string"/>
<xs:element name="id" type="xs:string"/>
<xs:element name="city" type="xs:string"/>
<xs:element name="country" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>